<?php
// +----------------------------------------------------------------------
// | Author: wyd 2025/10/19
// | DESC: 
// +----------------------------------------------------------------------

declare (strict_types=1);

use My\core\annotations\PropertyAnnotation;

return [
    //属性注解
    PropertyAnnotation::class=>function (\ReflectionProperty $prop, object $instance, array $args) {
        $env = parse_ini_file(ROOT_PATH."/env");
        if(!isset($env[$args['version']]))  return;
        $prop->setValue($instance,$env[$args['version']]);
    }
];